package com.htfc786.reminder.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @TableName medicine_usage
 */
@TableName(value = "medicine_usage")
@Data
public class MedicineUsage implements Serializable {
    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 家庭id
     */
    private Long familyId;

    /**
     * 药品id
     */
    private Long medicineId;

    /**
     * 成员id
     */
    private Long memberId;

    /**
     * 用药时间
     */
    private Date usageTime;

    /**
     * 用药数据
     */
    private String usageData;

    /**
     * 用药日期
     */
    private Date usageDate;

    /**
     * 类型
     */
    private String type;

    /**
     * 开启提醒
     */
    private Boolean reminderEnabled;

    /**
     * 备注
     */
    private String remarks;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}